﻿using Furion.ConfigurableOptions;

namespace Jim.OA.Service;

/// <summary>
/// 泛微OA配置
/// </summary>
public sealed class OAOptions : IConfigurableOptions
{
    /// <summary>
    /// 服务器地址
    /// </summary>
    public string BaseUrl { get; set; }

    /// <summary>
    /// 应用名
    /// </summary>
    public string AppKey { get; set; }
    /// <summary>
    /// regist接口请求cpk    对应ECOLOGY_BIZ_EC-RSA_PRV
    /// </summary>
    public string Cpk { get; set; }
    /// <summary>
    /// regist接口返回秘钥
    /// </summary>
    public string Secret { get; set; }

    /// <summary>
    /// regist接口返回spk   对应ECOLOGY_BIZ_EC-server_public_key
    /// </summary>
    public string Spk { get; set; }
    /// <summary>
    /// token接口返回
    /// </summary>
    public string Token { get; set; }

    /// <summary>
    /// WebService地址
    /// </summary>
    public string WebServiceUrl { get; set; }

    /// <summary>
    /// IP白名单
    /// </summary>
    public string IP { get; set; }
    /// <summary>
    ///  OA单点登录应用，通过OA 后台-集成中心-统一认证中心-认证服务管理-认证应用管理 进行配置
    /// </summary>
    public string SsoAppKey { get; set; }
    /// <summary>
    /// 是否调试模式
    /// </summary>
    public bool IsDebug { get; set; }
}
